<?php
/**
 * Created by JetBrains PhpStorm.
 * User: dodasso
 * Date: 7/20/13
 * Time: 9:34 PM
 * To change this template use File | Settings | File Templates.
 */

namespace session;

require_once(APP_ROOT . '/modules/log/log.php');
require_once(APP_ROOT . '/modules/log/logCommon.php');
require_once(APP_ROOT . '/modules/common/Common.php');

use log\Log;
use log\LogCommon;

class SessionDto {
    /* @property int $id */
    public $id;

    /* @property string $key */
    public $key;

    /* @property int $user_id */
    public $userId;

    /* @property timestamp $created_at */
    public $createdAt;

    /* @property timestamp $updated_at */
    public $updatedAt;

    /* @property string $remoteAddresses */
    public $remoteAddresses;

    /* @property string $userAgent */
    public $userAgent;

    function __construct() {
        Log::LOG_SESSION_FB();

        $this->id              = null;
        $this->key             = null;
        $this->userId          = null;
        $this->createdAt       = null;
        $this->updatedAt       = null;
        $this->remoteAddresses = null;
        $this->userAgent       = null;

        Log::LOG_SESSION_FE();
    }

    function __destruct() {
        Log::LOG_SESSION_FB();
        Log::LOG_SESSION_FE();
    }
}